<?php
	/*
	 *
	 *
	 */
	 
	 require_once("database.base.php");
	 
	 function poiCreate($poiLocationCode, $poiName, $poiDesc, $poiImgLink, $poiLocation){
		global $database_prefix;
	 
		$qry = "INSERT INTO " . $database_prefix . "_poi (POILocationCode, POIName, POIDesc, POIImgLink, POILocation) VALUES (" . $poiLocationCode . ',"' . $poiName . '","' . $poiDesc . '","' . $poiImgLink . '","' . $poiLocation . '")';
		sqlQuery($qry);
	 }
	 
	 function poiGetInfo($poiId){
		global $database_prefix;
		
		$qry = "SELECT * FROM " . $database_prefix . "_poi WHERE P_Id=" . $poiId;
		return sqlQuery($qry);
	 }
	 
	 function poiGetNumberOfPoi(){	
		global $database_prefix;
		
		return sqlNumberOfRows($database_prefix . "_poi");
	}
?>